﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Program09
{
    /// <summary>
    /// 定义员工类
    /// </summary>
    ///
    [Serializable]
    public class Person
    {
        //唯一标识
        public Guid ID { get; set; }

        public string EmployeeNo { get; set; }
        public string FirstName { get; set; }

        public string LastName { get; set; }

        public string FullName => $"{FirstName}{LastName}";
        public bool Sex { get; set; } = false;
        public DateTime BirthDay { get; set; } = DateTime.Today;
        public string Phone { get; set; }

        public Person()
        {
            ID = Guid.NewGuid();
        }
    }

}
